__________________________________________________________________________________________________
class Solution {
    public int sumOfDigits(int[] A) {
        Arrays.sort(A);
        int s = 0;
        for(char c : Integer.toString(A[0]).toCharArray()){
            s += c-'0';
        }
        return 1 - s % 2;
    }
}	
__________________________________________________________________________________________________

__________________________________________________________________________________________________
